package com.shuaibiao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 启动入口
 * @author yin.jinbiao
 *使用SpringBootAppliction来代替@Configuration/ComponentScan和EnableAutoConfiguration
 *SpringBootApplication只能扫描同级包下的注解，因此将App类放到com.shuaibiao下
 */
@SpringBootApplication
//@ComponentScan(basePackages={"com.shuaibiao.controller"})
@MapperScan(basePackages={"com.shuaibiao.dao"})
//@EnableAutoConfiguration
public class App {

	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
}
